Backport from trunk.
authorJan D. <jan.h.d@swipnet.se>
Fri, 4 Jul 2014 15:15:02 +0000 (17:15 +0200)
committerJan D. <jan.h.d@swipnet.se>
Fri, 4 Jul 2014 15:15:02 +0000 (17:15 +0200)
commitaa2c073545dd0b80cb80405dbd65571b885b8aa0
tree8dd56b7aad6c15832ded579e1bf7aebe33f41af5
parent8763f0e4cd2d5ac4b5963a33a5d76fa1342f78e8
Backport from trunk.
* xfns.c (create_frame_xic): Pass XNStatusAttributes to XCreateIC
only if xic_style calls for it.  This change allows Emacs to work
with ibus.  Also, don't leak resources if create_frame_xic fails,
and stop caching xic_style across different displays.
(supported_xim_styles): Make const.
(best_xim_style): Remove first parameter: it's always just
supported_xim_styles.  Change to look at supported_xim_styles
directly.
src/ChangeLog
src/xfns.c